package pathfinding.grid;

import pathfinding.core.Location;
import pathfinding.core.Map;
import pathfinding.core.Pathfinding;
import pathfinding.grid.astar.GridAstarFlood;

public class GridPathfindingFlood implements Pathfinding{
	
	private final GridAstarFlood astar;
	
	public GridPathfindingFlood(GridMap map, GridLocation destination){
		astar = new GridAstarFlood(map, destination);
	}
	
	@Override
	public GridPath getPath(Location s, Location e, Map m) {
		GridLocation start = (GridLocation)s;

		GridPath path = astar.getPath(start);

		return path;
	}

}
